package exp3;

import com.sun.javafx.geom.AreaOp;

public class Cost {
    public static void main(String[] args) {
        int a=0,b=0,c=0;
        for (;a<=30;a++){
            for (;b<=30;b++){
               for (;c<=30;c++){
                   if ( a+b+c != 30 )continue;
                   if ( 3*a+2*b+c != 50 )continue;
                   System.out.println(a+" "+b+" "+c);
               }
            }
        }
    }
}
